package com.laoliu.example.generate.web;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/")
public class TestContoller {

    @GetMapping("test")
    public String test() {
        return "this is a test method";
    }

    @PostMapping("testPost")
    public String testPost() {
        return "this is a post method";
    }
}
